//#include <bits/stdc++.h>
#include <iostream>
#include <map>

using namespace std;

int main(){
    // map用法
    map<char, string> mp;
    mp['h'] = "hello";
    mp['w'] = "World";
    map<char, string>::iterator it1 = mp.find('h');
    map<char, string>::iterator it2 = mp.find('w');
    cout << it1 -> second << " " << it2 -> second << endl;
    mp.erase('h');
    for(map<char, string>::iterator it = mp.begin(); it != mp.end(); it++){
        cout << it -> second << " " ;
    }
    mp.clear();

    // pair<string, int> p;
    // p.first = "haha";
    // p.second = 5;
    return 0;
}